import request from '@/utils/request'

// 系统Banner列表
export const getSystemBannerList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SystemBanner/GetSystemBannerList',
    method: 'GET',
    params
  });
}

// 添加系统Banner
export const addSystemBanner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SystemBanner/AddSystemBanner',
    method: 'POST',
    data
  });
}

// 更新系统Banner
export const updateSystemBanner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SystemBanner/UpdateSystemBanner',
    method: 'POST',
    data
  });
}

// 删除系统Banner
export const deleteSystemBanner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SystemBanner/DeleteSystemBanner',
    method: 'POST',
    data
  });
}

// 启用系统Banner
export const enableSystemBanner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SystemBanner/EnableSystemBannerr',
    method: 'POST',
    data
  });
}

// 禁用系统Banner
export const disableSystemBanner = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SystemBanner/DisableSystemBanner',
    method: 'POST',
    data
  });
}
